home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 649 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.0 KB  |  32 lines

  1. Newsgroups: comp.std.c
  2. Path: news.ifm.liu.se!liuida!tompa
  3. From: tompa@ida.liu.se (Thomas Padron-McCarthy)
  4. Subject: EXIT_SUCCES != EXIT_FAILURE?
  5. X-Nntp-Posting-Host: obel20.ida.liu.se
  6. Message-ID: <tompa.827763954@news>
  7. Summary: Does the standard guarantee that EXIT_SUCCESS != EXIT_FAILURE?
  8. Keywords: EXIT_SUCCESS EXIT_FAILURE guarantee
  9. Sender: news@ida.liu.se
  10. Organization: CIS Dept, Linkoping University, Sweden
  11. X-Newsreader: NN version 6.5.0 #6 (NOV)
  12. Date: Mon, 25 Mar 1996 14:25:54 GMT
  13.  
  14. Hi!
  15.  
  16. Many of the students in a C course I teach have started to use
  17. EXIT_SUCCESS and EXIT_FAILURE as return values from functions
  18. (other than main).
  19.  
  20. I have never used EXIT_SUCCESS and EXIT_FAILURE for anything
  21. else than as the return value from main, and as the argument to exit.
  22.  
  23. I don't like this new practice, but questions of style are difficult.
  24. So I wonder: Does the standard guarantee that EXIT_SUCCESS and
  25. EXIT_FAILURE are different?
  26.  
  27. I have looked in my old ANSI X3-159-1989,
  28. but I guess I'm not smart enough to understand it...
  29.  
  30.  
  31. Thomas Padron-McCarthy -- tpm@ida.liu.se
  32.